import 'package:freezed_annotation/freezed_annotation.dart';

part 'generated/catalog_response.freezed.dart';
part 'generated/catalog_response.g.dart';

@freezed
class CatalogResponse with _$CatalogResponse {
  const factory CatalogResponse({
    required int id,
    required String name,
    required double price,
  }) =_CatalogResponse;

  factory CatalogResponse.fromJson(Map<String, dynamic> json) => _$CatalogResponseFromJson(json);
}